//创建路由
import VueRouter from 'vue-router'
import home from './components/tabbar/Home.vue'
import member from './components/tabbar/Member.vue'
import shopcar from './components/tabbar/Shopcar.vue'
import search from './components/tabbar/Search.vue'
import newlist from './components/home/Newlist.vue'
import newsinfo from './components/home/Newinfo.vue'
import photolist from './components/home/Photolist.vue'
import photoinfo from './components/home/photoinfo.vue'


var vueRouter = new VueRouter({
    routes:[
        { path:'/', redirect: '/home'},
        { path:'/home', component: home},
        { path:'/member', component: member},
        { path:'/shopcar', component: shopcar},
        { path:'/search', component: search},
        { path:'/home/newlist', component: newlist},
        { path:'/home/newsinfo/:id', component: newsinfo},
        { path:'/home/photolist', component: photolist},
        { path:'/home/photoinfo/:id', component: photoinfo},

    ],
    linkActiveClass:"mui-active"
})

//导出对象
export default vueRouter

